//
//  CustonTableViewCell.m
//  AI
//
//  Created by awifi on 8/1/18.
//  Copyright © 2018年 zjhc. All rights reserved.
//

#import "CustonTableViewCell.h"

@implementation CustonTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    self.backgroundColor = [UIColor whiteColor];
    if (self) {
        self.iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake((float)20/375 * SCREEN_WIDTH, (float)15/667 * SCREEN_HEIGHT, (float)50/375 * SCREEN_WIDTH, (float)50/375 * SCREEN_WIDTH)];
        self.iconImageView.layer.cornerRadius = (float)25/375 * SCREEN_WIDTH;
        [self.iconImageView setBackgroundColor:[UIColor purpleColor]];
        [self addSubview:self.iconImageView];
        
        self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(ViewFrameX_W(self.iconImageView) + (float)30/375 * SCREEN_WIDTH, (float)15/667 * SCREEN_HEIGHT, SCREEN_WIDTH - (ViewFrameX_W(self.iconImageView) + (float)30/375 * SCREEN_WIDTH * 2), (float)25/667 * SCREEN_HEIGHT)];
        self.timeLabel.textAlignment = NSTextAlignmentLeft;
        self.timeLabel.textColor = [UIColor blackColor];
        self.timeLabel.font = [UIFont systemFontOfSize:14];
        [self addSubview:self.timeLabel];
        
        self.receptionStateL = [[UILabel alloc]initWithFrame:CGRectMake(ViewFrame_X(self.timeLabel), ViewFrameY_H(self.timeLabel), (float)50/375 * SCREEN_WIDTH, (float)25/667 * SCREEN_HEIGHT)];
        self.receptionStateL.textAlignment = NSTextAlignmentLeft;
        self.receptionStateL.font = [UIFont systemFontOfSize:14.0f];
        [self addSubview:self.receptionStateL];
        
        self.receptionerL = [[UILabel alloc]initWithFrame:CGRectMake(ViewFrameX_W(self.receptionStateL), ViewFrame_Y(self.receptionStateL), (float)100/375 * SCREEN_WIDTH, (float)25/667 * SCREEN_HEIGHT)];
        self.receptionerL.textAlignment = NSTextAlignmentLeft;
        self.receptionerL.textColor = UIColorFromHex(0x455DAA);
        self.receptionerL.font = [UIFont systemFontOfSize:14.0f];
        [self addSubview:self.receptionerL];
    }
    return self;
}
@end
